package com.inno.log.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.io.Serializable;

/**
 * (OperationLog)实体类
 *
 * @author makejava
 * @since 2025-01-20 11:45:26
 */
public class OperationLog extends PageDTO implements Serializable {
    private static final long serialVersionUID = 291327005203703206L;

    private Long id;
    /**
     * 服务名称
     */
    private String serviceName;
    /**
     * 操作类型信息
     */
    private String operationType;
    /**
     * 耗时(毫秒)
     */
    private Long takeTime;
    /**
     * 操作用户
     */
    private Long userId;
    /**
     * 操作ip地址
     */
    private String operationIp;
    /**
     * 操作设备
     */
    private String operationEquipment;
    /**
     * 异常信息
     */
    private String errorMsg;
    /**
     * 堆栈信息
     */
    private String methodTrace;
    /**
     * 操作时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getServiceName() {
        return serviceName;
    }

    public void setServiceName(String serviceName) {
        this.serviceName = serviceName;
    }

    public String getOperationType() {
        return operationType;
    }

    public void setOperationType(String operationType) {
        this.operationType = operationType;
    }

    public Long getTakeTime() {
        return takeTime;
    }

    public void setTakeTime(Long takeTime) {
        this.takeTime = takeTime;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getOperationIp() {
        return operationIp;
    }

    public void setOperationIp(String operationIp) {
        this.operationIp = operationIp;
    }

    public String getOperationEquipment() {
        return operationEquipment;
    }

    public void setOperationEquipment(String operationEquipment) {
        this.operationEquipment = operationEquipment;
    }

    public String getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }

    public String getMethodTrace() {
        return methodTrace;
    }

    public void setMethodTrace(String methodTrace) {
        this.methodTrace = methodTrace;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

}

